/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.smarthome.base.dao.ShAreaProvinceDao;
import com.smarthome.base.dao.base.BaseDao;
import com.smarthome.base.service.ShAreaProvinceService;
import com.smarthome.base.service.base.BaseServiceImpl;
import com.smarthome.domain.bean.ShAreaProvince;

/**
 * ShAreaProvinceService 实现类
 * @author KongXiangyu
 * @since 2015-10-10
 */
@Service("shAreaProvinceService")
public class ShAreaProvinceServiceImpl extends BaseServiceImpl<ShAreaProvince,Long> implements ShAreaProvinceService {
	
	@Resource private ShAreaProvinceDao shAreaProvinceDao;
	
	public BaseDao<ShAreaProvince,Long> getDao() {
		return shAreaProvinceDao;
	}

	@Override
	public List<ShAreaProvince> getExpressFeeProvince(
			ShAreaProvince shAreaProvince) {
		if(shAreaProvince == null || shAreaProvince.getQueryData().get("expressId") == null) {
			return null;
		}
		return shAreaProvinceDao.getExpressFeeProvince(shAreaProvince);
	}
}